<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
  <meta charset="utf-8" />
  <meta name="generator" content="pandoc" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
  <title>sample-pandoc</title>
  <style type="text/css">
      code{white-space: pre-wrap;}
      span.smallcaps{font-variant: small-caps;}
      span.underline{text-decoration: underline;}
      div.column{display: inline-block; vertical-align: top; width: 50%;}
  </style>
  <style type="text/css">
a.sourceLine { display: inline-block; line-height: 1.25; }
a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; }
a.sourceLine:empty { height: 1.2em; }
.sourceCode { overflow: visible; }
code.sourceCode { white-space: pre; position: relative; }
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; }
@media screen {
div.sourceCode { overflow: auto; }
}
@media print {
code.sourceCode { white-space: pre-wrap; }
a.sourceLine { text-indent: -1em; padding-left: 1em; }
}
pre.numberSource a.sourceLine
  { position: relative; left: -4em; }
pre.numberSource a.sourceLine::before
  { content: attr(data-line-number);
    position: relative; left: -1em; text-align: right; vertical-align: baseline;
    border: none; pointer-events: all; display: inline-block;
    -webkit-touch-callout: none; -webkit-user-select: none;
    -khtml-user-select: none; -moz-user-select: none;
    -ms-user-select: none; user-select: none;
    padding: 0 4px; width: 4em;
    color: #aaaaaa;
  }
pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa;  padding-left: 4px; }
div.sourceCode
  { background-color: #f8f8f8; }
@media screen {
a.sourceLine::before { text-decoration: underline; }
}
code span.al { color: #ef2929; } /* Alert */
code span.an { color: #8f5902; font-weight: bold; font-style: italic; } /* Annotation */
code span.at { color: #c4a000; } /* Attribute */
code span.bn { color: #0000cf; } /* BaseN */
code span.cf { color: #204a87; font-weight: bold; } /* ControlFlow */
code span.ch { color: #4e9a06; } /* Char */
code span.cn { color: #000000; } /* Constant */
code span.co { color: #8f5902; font-style: italic; } /* Comment */
code span.cv { color: #8f5902; font-weight: bold; font-style: italic; } /* CommentVar */
code span.do { color: #8f5902; font-weight: bold; font-style: italic; } /* Documentation */
code span.dt { color: #204a87; } /* DataType */
code span.dv { color: #0000cf; } /* DecVal */
code span.er { color: #a40000; font-weight: bold; } /* Error */
code span.ex { } /* Extension */
code span.fl { color: #0000cf; } /* Float */
code span.fu { color: #000000; } /* Function */
code span.im { } /* Import */
code span.in { color: #8f5902; font-weight: bold; font-style: italic; } /* Information */
code span.kw { color: #204a87; font-weight: bold; } /* Keyword */
code span.op { color: #ce5c00; font-weight: bold; } /* Operator */
code span.ot { color: #8f5902; } /* Other */
code span.pp { color: #8f5902; font-style: italic; } /* Preprocessor */
code span.sc { color: #000000; } /* SpecialChar */
code span.ss { color: #4e9a06; } /* SpecialString */
code span.st { color: #4e9a06; } /* String */
code span.va { color: #000000; } /* Variable */
code span.vs { color: #4e9a06; } /* VerbatimString */
code span.wa { color: #8f5902; font-weight: bold; font-style: italic; } /* Warning */
  </style>
  <!--[if lt IE 9]>
    <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
  <![endif]-->
</head>
<body>
<!--
---------------------------------------------------------------------
Program: test.md
Author:  github.com/kylebarron
Created: 5/10/2018, 11:46:37 AM
Updated: 5/10/2018, 11:46:37 AM
Purpose: File to test pandoc with syntax highlighting
 -->
<h1 id="skylighting-test">Skylighting Test</h1>
<div class="sourceCode" id="cb1"><pre class="sourceCode sas"><code class="sourceCode sas"><a class="sourceLine" id="cb1-1" data-line-number="1"><span class="co">/**********************************************************************</span></a>
<a class="sourceLine" id="cb1-2" data-line-number="2"><span class="co"> * Program: example.sas</span></a>
<a class="sourceLine" id="cb1-3" data-line-number="3"><span class="co"> * Purpose: SAS Example for HighlightJS Plug-in</span></a>
<a class="sourceLine" id="cb1-4" data-line-number="4"><span class="co"> **********************************************************************/</span></a>
<a class="sourceLine" id="cb1-5" data-line-number="5"></a>
<a class="sourceLine" id="cb1-6" data-line-number="6"><span class="kw">%put</span> Started at <span class="kw">%sysfunc</span>(<span class="fu">putn</span>(<span class="kw">%sysfunc</span>(<span class="fu">datetime</span>()), <span class="fu">datetime</span>.));</a>
<a class="sourceLine" id="cb1-7" data-line-number="7"><span class="kw">options</span></a>
<a class="sourceLine" id="cb1-8" data-line-number="8">    errors = <span class="dv">20</span>  <span class="co">/* Maximum number of prints of repeat errors */</span></a>
<a class="sourceLine" id="cb1-9" data-line-number="9">    fullstimer   <span class="co">/* Detailed timer after each step execution  */</span></a>
<a class="sourceLine" id="cb1-10" data-line-number="10">;</a>
<a class="sourceLine" id="cb1-11" data-line-number="11"></a>
<a class="sourceLine" id="cb1-12" data-line-number="12"><span class="kw">%let</span> maindir = /path/<span class="kw">to</span>/maindir;</a>
<a class="sourceLine" id="cb1-13" data-line-number="13"><span class="kw">%let</span> outdir  = <span class="kw">&amp;maindir/</span>out.;</a>
<a class="sourceLine" id="cb1-14" data-line-number="14"><span class="kw">systask</span> command <span class="st">&quot;mkdir -p &amp;outdir.&quot;</span> wait;</a>
<a class="sourceLine" id="cb1-15" data-line-number="15"><span class="kw">libname</span> main <span class="st">&quot;&amp;maindir.&quot;</span> access = readonly;</a>
<a class="sourceLine" id="cb1-16" data-line-number="16"></a>
<a class="sourceLine" id="cb1-17" data-line-number="17"><span class="kw">data</span> testing;</a>
<a class="sourceLine" id="cb1-18" data-line-number="18">    <span class="kw">input</span> name $ number delimiter = <span class="st">&quot;,&quot;</span>;</a>
<a class="sourceLine" id="cb1-19" data-line-number="19"><span class="ot">    datalines;</span></a>
<a class="sourceLine" id="cb1-20" data-line-number="20"><span class="ot">    John,1</span></a>
<a class="sourceLine" id="cb1-21" data-line-number="21"><span class="ot">    Mary,2</span></a>
<a class="sourceLine" id="cb1-22" data-line-number="22"><span class="ot">    Jane,3</span></a>
<a class="sourceLine" id="cb1-23" data-line-number="23"><span class="ot">    ;</span></a>
<a class="sourceLine" id="cb1-24" data-line-number="24">    <span class="kw">if</span> number &gt; <span class="dv">1</span> <span class="kw">then</span> final = <span class="dv">0</span>;</a>
<a class="sourceLine" id="cb1-25" data-line-number="25">    <span class="kw">else do</span>;</a>
<a class="sourceLine" id="cb1-26" data-line-number="26">        final = <span class="dv">1</span>;</a>
<a class="sourceLine" id="cb1-27" data-line-number="27"><span class="kw">    end</span>;</a>
<a class="sourceLine" id="cb1-28" data-line-number="28"><span class="kw">run</span>;</a>
<a class="sourceLine" id="cb1-29" data-line-number="29"></a>
<a class="sourceLine" id="cb1-30" data-line-number="30"><span class="kw">proc</span> sql <span class="kw">&amp;sqlopts;</span></a>
<a class="sourceLine" id="cb1-31" data-line-number="31"><span class="kw">create</span> <span class="kw">table</span> waffles <span class="kw">as</span></a>
<a class="sourceLine" id="cb1-32" data-line-number="32">    <span class="kw">select</span> * <span class="kw">from</span> testing;</a>
<a class="sourceLine" id="cb1-33" data-line-number="33"><span class="kw">quit</span>;</a>
<a class="sourceLine" id="cb1-34" data-line-number="34"></a>
<a class="sourceLine" id="cb1-35" data-line-number="35"><span class="kw">%put</span> <span class="fu">NOTE</span>: Hello;</a>
<a class="sourceLine" id="cb1-36" data-line-number="36"><span class="kw">%put</span> <span class="fu">NOTE</span>- Hello;</a>
<a class="sourceLine" id="cb1-37" data-line-number="37"><span class="kw">%put</span> WARNING: Hello;</a>
<a class="sourceLine" id="cb1-38" data-line-number="38"><span class="kw">%put</span> <span class="kw">ERROR</span>: Hello;</a>
<a class="sourceLine" id="cb1-39" data-line-number="39"><span class="kw">%put</span> Something <span class="kw">ERROR</span>- Hello;</a>
<a class="sourceLine" id="cb1-40" data-line-number="40"></a>
<a class="sourceLine" id="cb1-41" data-line-number="41"><span class="kw">%macro</span> testMacro(positional, named = value);</a>
<a class="sourceLine" id="cb1-42" data-line-number="42">    <span class="kw">%put</span> positional = <span class="kw">&amp;positional.</span>;</a>
<a class="sourceLine" id="cb1-43" data-line-number="43">    <span class="kw">%put</span> named      = <span class="fu">log</span>(<span class="kw">&amp;named.</span>);</a>
<a class="sourceLine" id="cb1-44" data-line-number="44"><span class="kw">%mend</span> testMacro;</a>
<a class="sourceLine" id="cb1-45" data-line-number="45">%testMacro(positional, named = value);</a>
<a class="sourceLine" id="cb1-46" data-line-number="46"></a>
<a class="sourceLine" id="cb1-47" data-line-number="47"><span class="kw">dm</span> <span class="st">&#39;clear log output odsresults&#39;</span>;</a>
<a class="sourceLine" id="cb1-48" data-line-number="48"></a>
<a class="sourceLine" id="cb1-49" data-line-number="49"><span class="kw">proc</span> datasets lib = work kill noprint; <span class="kw">quit</span>;</a>
<a class="sourceLine" id="cb1-50" data-line-number="50"><span class="kw">libname</span> _all_ clear;</a></code></pre></div>

<div class="sourceCode" id="cb2"><pre class="sourceCode stata"><code class="sourceCode stata"><a class="sourceLine" id="cb2-1" data-line-number="1"><span class="kw">program</span> <span class="kw">define</span> excellentProgram</a>
<a class="sourceLine" id="cb2-2" data-line-number="2"><span class="kw">version</span> 14.0</a>
<a class="sourceLine" id="cb2-3" data-line-number="3"></a>
<a class="sourceLine" id="cb2-4" data-line-number="4"><span class="kw">local</span> hi  = <span class="ot">`1&#39;</span></a>
<a class="sourceLine" id="cb2-5" data-line-number="5"><span class="kw">local</span> bye = <span class="ot">`2&#39;</span></a>
<a class="sourceLine" id="cb2-6" data-line-number="6"><span class="kw">local</span> yes = <span class="fu">ln</span>(<span class="ot">`hi&#39;</span>)</a>
<a class="sourceLine" id="cb2-7" data-line-number="7"></a>
<a class="sourceLine" id="cb2-8" data-line-number="8"><span class="co">* This is a comment</span></a>
<a class="sourceLine" id="cb2-9" data-line-number="9"><span class="kw">set</span> <span class="kw">obs</span> <span class="ot">`= _N + 1&#39;</span></a>
<a class="sourceLine" id="cb2-10" data-line-number="10"><span class="kw">gen</span> neg = 1 - 1 / (1 + <span class="fu">exp</span>(<span class="kw">score</span>))</a>
<a class="sourceLine" id="cb2-11" data-line-number="11"></a>
<a class="sourceLine" id="cb2-12" data-line-number="12"><span class="co">/*</span></a>
<a class="sourceLine" id="cb2-13" data-line-number="13"><span class="co"> * Multi line comments are pretty</span></a>
<a class="sourceLine" id="cb2-14" data-line-number="14"><span class="co"> * because they span many lines</span></a>
<a class="sourceLine" id="cb2-15" data-line-number="15"><span class="co"> */</span></a>
<a class="sourceLine" id="cb2-16" data-line-number="16"></a>
<a class="sourceLine" id="cb2-17" data-line-number="17"><span class="kw">reg</span> <span class="fu">y</span> x</a>
<a class="sourceLine" id="cb2-18" data-line-number="18"><span class="kw">xi</span>: <span class="kw">reg</span> y2 x i.dummy <span class="co">// This is another comment type</span></a>
<a class="sourceLine" id="cb2-19" data-line-number="19"></a>
<a class="sourceLine" id="cb2-20" data-line-number="20"><span class="kw">di</span> <span class="st">&quot;This is a normal string with a `local&#39; $global ${global}&quot;</span></a>
<a class="sourceLine" id="cb2-21" data-line-number="21"><span class="kw">di</span> <span class="st">`&quot;This is a &quot;super string&quot; that takes on anything&quot;&#39;</span></a>
<a class="sourceLine" id="cb2-22" data-line-number="22"><span class="kw">di</span> <span class="st">&quot;string&quot;</span> <span class="ot">`1&#39;</span>two<span class="ot">${three}</span> bad <span class="st">`&quot;string &quot; &quot;&#39;</span> good <span class="st">`&quot;string &quot; &quot;&#39;</span></a>
<a class="sourceLine" id="cb2-23" data-line-number="23"></a>
<a class="sourceLine" id="cb2-24" data-line-number="24"><span class="co">// This also works at line starts</span></a>
<a class="sourceLine" id="cb2-25" data-line-number="25"><span class="kw">adopath</span> ++ <span class="st">&quot;${lib}/code/ado/&quot;</span></a>
<a class="sourceLine" id="cb2-26" data-line-number="26">cap <span class="kw">adopath</span> - <span class="kw">SITE</span></a>
<a class="sourceLine" id="cb2-27" data-line-number="27">cap <span class="kw">adopath</span> - <span class="ot">PLUS</span></a>
<a class="sourceLine" id="cb2-28" data-line-number="28"><span class="co">/*cap adopath - PERSONAL</span></a>
<a class="sourceLine" id="cb2-29" data-line-number="29"><span class="co">cap adopath - OLDPLACE*/</span></a>
<a class="sourceLine" id="cb2-30" data-line-number="30"></a>
<a class="sourceLine" id="cb2-31" data-line-number="31">forval i = 1 / 4{</a>
<a class="sourceLine" id="cb2-32" data-line-number="32">  cap <span class="kw">reg</span> <span class="fu">y</span> x<span class="ot">`i&#39;</span>, <span class="kw">robust</span></a>
<a class="sourceLine" id="cb2-33" data-line-number="33">  <span class="kw">if</span> <span class="ot">`i&#39;</span> == 2 {</a>
<a class="sourceLine" id="cb2-34" data-line-number="34">    <span class="kw">local</span> c = _b[<span class="dt">_cons</span>]</a>
<a class="sourceLine" id="cb2-35" data-line-number="35">    <span class="kw">local</span> b = _b[x<span class="ot">`i&#39;</span>]</a>
<a class="sourceLine" id="cb2-36" data-line-number="36">    <span class="kw">local</span> x = <span class="fu">ln</span>(<span class="ot">`i&#39;</span>)</a>
<a class="sourceLine" id="cb2-37" data-line-number="37">  }</a>
<a class="sourceLine" id="cb2-38" data-line-number="38">}</a>
<a class="sourceLine" id="cb2-39" data-line-number="39"></a>
<a class="sourceLine" id="cb2-40" data-line-number="40"><span class="co">* Something about how mata is really a second language within Stata</span></a>
<a class="sourceLine" id="cb2-41" data-line-number="41"><span class="kw">mata</span>: <span class="kw">mata</span> mlib <span class="fu">index</span></a>
<a class="sourceLine" id="cb2-42" data-line-number="42"><span class="kw">end</span></a></code></pre></div>
</body>
</html>
